<script>
$(document).ready(function(){
	$("#tijiao").click(function(){
		if($("#auto_brand").val()==''){
			alert('请输入车牌号码');
			return false;
		}
	})

});
</script>

<center><b>{%$act_title%}表单</b></center>
<table border=1>
<form action="index.php?c=auto_info&m={%$act%}&post=1" method=post name=frm>
		<tr>
		<td>编号</td>
		<td><input type=text id="bianhao" name="bianhao" size=30 value='{%$bianhao%}' {% if $is_show ==1 %} readonly {%/if%}></td>
		<td>签合同时间</td>
		<td><input type=text name="auto_contract" id="auto_contract" class="input_date_select txt-normal" size="12" value='{%$auto_contract%}' {% if $is_show ==1 %} readonly {%/if%}>
		<script>
		Calendar.setup({
			inputField     :    "auto_contract",   // id of the input field
			ifFormat       :    "%Y-%m-%d",       // format of the input field
			showsTime      :    false,
			timeFormat     :    "24"
		});
		</script>
		</td>
	</tr>

		<tr>
		<td>车牌号</td>
		<td><input type=text id="auto_brand" name="auto_brand" size=30 value='{%if $smarty.get.m==add%}冀R{%/if%}{%$auto_brand%}' {% if $is_show ==1 %} readonly {%/if%}></td>
		<td>客户名称</td>
		<td><input type=text name="auto_guest_name" size=30 value='{%$auto_guest_name%}' {% if $is_show ==1 %} readonly {%/if%}></td>
	</tr>
		-
		<tr>
		<td>地址</td>
		<td><input type=text name="auto_address" size=30 value='{%$auto_address%}' {% if $is_show ==1 %} readonly {%/if%}></td>
		<td>身份证号</td>
		<td><input type=text name="auto_zip" size=30 value='{%$auto_zip%}' {% if $is_show ==1 %} readonly {%/if%}></td>
	</tr>
		
		<tr>
		<td>电话1</td>
		<td><input type=text name="auto_tel1" size=30 value='{%$auto_tel1%}' {% if $is_show ==1 %} readonly {%/if%}></td>
		<td>电话2</td>
		<td><input type=text name="auto_tel2" size=30 value='{%$auto_tel2%}' {% if $is_show ==1 %} readonly {%/if%}></td>
	</tr>
		<tr>
		<td>年审时间</td>
		<td><input type=text name="auto_year_time" id="auto_year_time" class="input_date_select txt-normal" size="12" value='{%$auto_year_time%}' {% if $is_show ==1 %} readonly {%/if%}></td>
		<script>
		Calendar.setup({
			inputField     :    "auto_year_time",   // id of the input field
			ifFormat       :    "%Y-%m-%d",       // format of the input field
			showsTime      :    false,
			timeFormat     :    "24"
		});
		</script>
		<td>营运年审时间</td>
		<td><input type=text name="auto_year_pay_time" id="auto_year_pay_time" class="input_date_select txt-normal" size="12" value='{%$auto_year_pay_time%}' {% if $is_show ==1 %} readonly {%/if%}>
		<script>
		Calendar.setup({
			inputField     :    "auto_year_pay_time",   // id of the input field
			ifFormat       :    "%Y-%m-%d",       // format of the input field
			showsTime      :    false,
			timeFormat     :    "24"
		});
		</script>
		</td>
	</tr>
		
		<tr>
		<td>二保时间1</td>
		<td><input type=text name="auto_two_insurance" id="auto_two_insurance" class="input_date_select txt-normal" size="12" value='{%$auto_two_insurance%}' {% if $is_show ==1 %} readonly {%/if%}>
		<script>
		Calendar.setup({
			inputField     :    "auto_two_insurance",   // id of the input field
			ifFormat       :    "%Y-%m-%d",       // format of the input field
			showsTime      :    false,
			timeFormat     :    "24"
		});
		</script>
		</td>
		<td>二保时间2</td>
		<td><input type=text name="auto_two_insurance2" id="auto_two_insurance2" class="input_date_select txt-normal" size="12" value='{%$auto_two_insurance2%}' {% if $is_show ==1 %} readonly {%/if%}>
		<script>
		Calendar.setup({
			inputField     :    "auto_two_insurance2",   // id of the input field
			ifFormat       :    "%Y-%m-%d",       // format of the input field
			showsTime      :    false,
			timeFormat     :    "24"
		});
		</script>
		</td>
	</tr>
		
		<tr>
		<td>二保时间3</td>
		<td><input type=text name="auto_two_insurance3" id="auto_two_insurance3" class="input_date_select txt-normal" size="12" value='{%$auto_two_insurance3%}' {% if $is_show ==1 %} readonly {%/if%}>
		<script>
		Calendar.setup({
			inputField     :    "auto_two_insurance3",   // id of the input field
			ifFormat       :    "%Y-%m-%d",       // format of the input field
			showsTime      :    false,
			timeFormat     :    "24"
		});
		</script>
		</td>
		<td>保险时间</td>
		<td><input type=text name="auto_insurance" id="auto_insurance" class="input_date_select txt-normal" size="12" value='{%$auto_insurance%}' {% if $is_show ==1 %} readonly {%/if%}>
		<script>
		Calendar.setup({
			inputField     :    "auto_insurance",   // id of the input field
			ifFormat       :    "%Y-%m-%d",       // format of the input field
			showsTime      :    false,
			timeFormat     :    "24"
		});
		</script>
		</td>
	</tr>

	<tr>
		<td>交强险</td>
		<td><input type=text name="jiaoqiangxian" id="jiaoqiangxian" class="input_date_select txt-normal" size="12" value='{%$jiaoqiangxian%}' {% if $is_show ==1 %} readonly {%/if%}>
		<script>
		Calendar.setup({
			inputField     :    "jiaoqiangxian",   // id of the input field
			ifFormat       :    "%Y-%m-%d",       // format of the input field
			showsTime      :    false,
			timeFormat     :    "24"
		});
		</script>
		</td>
		<td>商业险</td>
		<td><input type=text name="shangyexian" id="shangyexian" class="input_date_select txt-normal" size="12" value='{%$shangyexian%}' {% if $is_show ==1 %} readonly {%/if%}>
		<script>
		Calendar.setup({
			inputField     :    "shangyexian",   // id of the input field
			ifFormat       :    "%Y-%m-%d",       // format of the input field
			showsTime      :    false,
			timeFormat     :    "24"
		});
		</script>
		</td>
	</tr>	
		<tr>
		<td>品牌型号</td>
		<td><input type=text name="pinpaixinghao" id="pinpaixinghao" class="input_date_select txt-normal" size="12" value='{%$pinpaixinghao%}' {% if $is_show ==1 %} readonly {%/if%}>
		</td>
		<td>服务费金额</td>
		<td><input type=text name="fuwufiejine" id="fuwufiejine" class="input_date_select txt-normal" size="12" value='{%$fuwufiejine%}' {% if $is_show ==1 %} readonly {%/if%}>
		</td>
	</tr>
		<tr>
		<td>服务费时间</td>
		<td><input type=text name="auto_server_time" id="auto_server_time" class="input_date_select txt-normal" size="12" value='{%$auto_server_time%}' {% if $is_show ==1 %} readonly {%/if%}>
		<script>
		Calendar.setup({
			inputField     :    "auto_server_time",   // id of the input field
			ifFormat       :    "%Y-%m-%d",       // format of the input field
			showsTime      :    false,
			timeFormat     :    "24"
		});
		</script>
		</td>
		<td>业务员</td>
		<td><input type=text name="auto_server_user" value='{%$auto_server_user%}' {% if $is_show ==1 %} readonly {%/if%}></td>
	</tr>
				<tr>
		<td>营运证号</td>
		<td>
		<input type=text name="yingyun_no" value='{%$yingyun_no%}' {% if $is_show ==1 %} readonly {%/if%}>
		</td>
		<td>营运打证日期</td>
		<td>
		<input type=text name="yingyun_time" id="yingyun_time" class="input_date_select txt-normal" size="12" value='{%$yingyun_time%}' {% if $is_show ==1 %} readonly {%/if%}>
		<script>
		Calendar.setup({
			inputField     :    "yingyun_time",   // id of the input field
			ifFormat       :    "%Y-%m-%d",       // format of the input field
			showsTime      :    false,
			timeFormat     :    "24"
		});
		</script>
		</td>
	</tr>
<tr>
		<td>登记日期</td>
		<td colspan=3><input type=text name="dengjiriqi" id="dengjiriqi" class="input_date_select txt-normal" size="12" value='{%$dengjiriqi%}' {% if $is_show ==1 %} readonly {%/if%}>
		<script>
		Calendar.setup({
			inputField     :    "dengjiriqi",   // id of the input field
			ifFormat       :    "%Y-%m-%d",       // format of the input field
			showsTime      :    false,
			timeFormat     :    "24"
		});
		</script>
		</td>
		<tr>
		<td>备注</td>
		<td colspan=3>
		<textarea name="auto_info" cols="70" rows="10" {% if $is_show ==1 %} readonly {%/if%}>{%$auto_info%}</textarea>
		</td>
	</tr>

		<tr>
		<td colspan=2 align=center>
		<input type=hidden name='auto_id' id='auto_id' value='{%$auto_id%}'>
		{% if $is_show ==1 %}
		<input type="button" value="返回" onclick="javascript:history.go(-1);">
		{% else %}
		<input type=submit value="提交" id="tijiao">&nbsp;&nbsp;
		<input type=reset value="重置">
		{% /if %}
		</td>
	</tr>
</form>
</table>